<template>
    <view class="scope-container data-v-16e3096c" :style="'min-height: 100vh; background:#101113'">
        <view class="head data-v-16e3096c">
            <view @tap="__e" class="head-back data-v-16e3096c" :data-event-opts="[['tap', [['handleBackClick', ['$event']]]]]">
                <image class="data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/lingzhu/back.png"></image>
            </view>
            <view class="head-cwei data-v-16e3096c">
                <view @tap="__e" class="head-cwei-fl data-v-16e3096c" :data-event-opts="[['tap', [['handleLeftClick', ['$event']]]]]">
                    <image class="data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/lingzhu/left.png"></image>
                </view>
                <view class="head-cwei-ct data-v-16e3096c">
                    <swiper
                        :autoplay="true"
                        @change="__e"
                        :circular="true"
                        class="head-cwei-ct-img data-v-16e3096c"
                        :current="currentswiper"
                        :data-event-opts="[['change', [['changeswiper', ['$event']]]]]"
                        :interval="3000"
                        style="height: 792rpx"
                    >
                        <swiper-item class="data-v-16e3096c" style="margin-top: 78rpx" v-for="(item, index) in skusList" :key="index">
                            <image class="data-v-16e3096c" :data-item="item" mode="aspectFill" :src="item.thumb" style="width: 100%; height: 422rpx"></image>

                            <view class="head-cwei-des data-v-16e3096c">
                                <view class="head-cwei-lingxing data-v-16e3096c"></view>
                                <view class="head-cwei-yuanxing data-v-16e3096c"></view>
                                <view class="head-cwei-title data-v-16e3096c">终极款</view>
                                <view class="head-cwei-yuanxing1 data-v-16e3096c"></view>
                                <view class="head-cwei-lingxing1 data-v-16e3096c"></view>
                            </view>

                            <view class="head-cwei-num data-v-16e3096c">{{ '' + index + 1 + '/' + $root.g0 + '' }}</view>

                            <view class="cwei-name data-v-16e3096c">{{ '' + item.title + '' }}</view>
                        </swiper-item>
                    </swiper>
                </view>
                <view @tap="__e" class="head-cwei-fr data-v-16e3096c" :data-event-opts="[['tap', [['handleRightClick', ['$event']]]]]">
                    <image class="data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/lingzhu/right.png"></image>
                </view>
            </view>
        </view>
        <view class="data-v-16e3096c" style="height:140rpx;background:#101113';"></view>
        <view class="jiange data-v-16e3096c"></view>
        <view class="lingzhus data-v-16e3096c">
            <view class="lingzhus-fl data-v-16e3096c">
                <view class="lingzhus-touxiang data-v-16e3096c">
                    <image class="lingzhus-tupian data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/lingzhu/tupian.png"></image>
                    <image
                        class="lingzhus-touxiang-img data-v-16e3096c"
                        :src="lord && lord.new_log && lord.new_log.user && lord.new_log.user.headimg"
                        v-if="lord && lord.new_log"
                    ></image>
                </view>
                <view class="lingzhus-info data-v-16e3096c">
                    <view class="lingzhus-info-top data-v-16e3096c">
                        <text class="data-v-16e3096c">领主</text>
                        <text class="lingzhus-info-top-text data-v-16e3096c" v-if="lord && lord.new_log">
                            {{ lord && lord.new_log && lord.new_log.user && lord.new_log.user.name }}
                        </text>
                    </view>
                    <view class="lingzhus-info-time data-v-16e3096c">{{ '[' + lord_endtime + '开奖]' }}</view>
                </view>
            </view>
            <view class="lingzhus-fr data-v-16e3096c">
                <view class="lingzhus-fr-img data-v-16e3096c">
                    <image class="lingzhus-fr-border data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/lingzhu/jiangli.png"></image>
                    <image class="lingzhus-fr-thumb data-v-16e3096c" mode="scaleToFill" :src="lordRewardOne.thumb"></image>
                </view>
                <view class="lingzhus-fr-title data-v-16e3096c">{{ '' + lordRewardOne.title + '' }}</view>
            </view>
        </view>
        <view class="badge data-v-16e3096c">
            <view @tap="__e" class="badge-view data-v-16e3096c" :data-event-opts="[['tap', [['openGameplayClick', ['$event']]]]]">玩法</view>
            <view @tap="__e" class="badge-view data-v-16e3096c" :data-event-opts="[['tap', [['openJiangLiClick', ['$event']]]]]">奖励</view>
            <view @tap="__e" class="badge-view data-v-16e3096c" :data-event-opts="[['tap', [['e0', ['$event']]]]]">中赏榜单</view>
            <view @tap="__e" class="badge-view data-v-16e3096c" :data-event-opts="[['tap', [['openBangDanClick', ['$event']]]]]">领主榜单</view>
        </view>
        <view class="list-box data-v-16e3096c">
            <view class="sku-list-box data-v-16e3096c">
                <view class="sku-list data-v-16e3096c" v-for="(item, index) in $root.l0" :key="index">
                    <view
                        class="top-title-box data-v-16e3096c"
                        :style="
                            'background-image:' +
                            (item[$orig].level == 1
                                ? bgImgs[0]
                                : item[$orig].level == 2
                                ? bgImgs[1]
                                : item[$orig].level == 4
                                ? bgImgs[2]
                                : item[$orig].level == 5
                                ? bgImgs[3]
                                : bgImgs[4]) +
                            ';'
                        "
                    >
                        <view class="top-title-box-gl data-v-16e3096c">
                            概率
                            <text class="top-title-box-num data-v-16e3096c">{{ item.g1 + '%' }}</text>
                            （此概率为当前赏别出赏概率）
                        </view>
                    </view>

                    <scroll-view class="sku-scroll data-v-16e3096c" :enableFlex="true" :scrollX="true">
                        <view
                            @tap="__e"
                            class="sku-box data-v-16e3096c"
                            :data-event-opts="[['tap', [['showDetailImagePopup', ['$0', '$1'], [[['skus', '', index2]], [['info.sku_level', '', index, 'odds']]]]]]]"
                            v-if="item[$orig].level == item2.level"
                            v-for="(item2, index2) in skus"
                            :key="index2"
                        >
                            <view class="sku-item data-v-16e3096c">
                                <view class="data-v-16e3096c" style="position: relative">
                                    <image class="icon data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/wuxianshang/r.png" v-if="item[$orig].level == 1"></image>
                                    <block v-else>
                                        <image class="icon data-v-16e3096c" src="https://img121.7dun.com/20230207NewImg/wuxianshang/sr.png" v-if="item[$orig].level == 2"></image>
                                        <block v-else>
                                            <image
                                                class="icon data-v-16e3096c"
                                                src="https://img121.7dun.com/20230207NewImg/wuxianshang/ssr.png"
                                                v-if="item[$orig].level == 4"
                                            ></image>
                                            <block v-else>
                                                <image
                                                    class="icon data-v-16e3096c"
                                                    src="https://img121.7dun.com/20230207NewImg/wuxianshang/ur.png"
                                                    v-if="item[$orig].level == 5"
                                                ></image>
                                            </block>
                                        </block>
                                    </block>
                                    <view class="sku-image data-v-16e3096c">
                                        <image class="data-v-16e3096c" mode="scaleToFill" :src="item2.thumb"></image>
                                    </view>
                                </view>
                                <view class="price-box data-v-16e3096c">
                                    <price-display @__l="__l" class="data-v-16e3096c" :info="info" :vueId="'8cb12954-1-' + index + '-' + index2"></price-display>
                                </view>
                            </view>
                        </view>
                    </scroll-view>
                </view>
                <view class="data-v-16e3096c" style="padding-bottom: 850rpx"></view>
            </view>
        </view>
        <view class="down data-v-16e3096c">
            <view class="down-view data-v-16e3096c">
                <view @tap="__e" class="down-price data-v-16e3096c" :data-event-opts="[['tap', [['pay', [1]]]]]">
                    <view class="data-v-16e3096c">{{ '¥' + info.money_price / 100 }}</view>
                </view>
                <view @tap="__e" class="down-price data-v-16e3096c" :data-event-opts="[['tap', [['pay', [5]]]]]">
                    <view class="data-v-16e3096c">{{ '¥' + (info.money_price / 100) * 5 }}</view>
                </view>
                <view @tap="__e" class="down-price data-v-16e3096c" :data-event-opts="[['tap', [['pay', [10]]]]]">
                    <view class="data-v-16e3096c">{{ '¥' + (info.money_price / 100) * 10 }}</view>
                </view>
            </view>
        </view>
        <jiangli
            @__l="__l($event, { eventOpts: [['^close', [['closeJiangLiClick']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['closeJiangLiClick']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^close', [['closeJiangLiClick']]]]"
            :lordRewardOne="lordRewardOne"
            :lordRewardThree="lordRewardThree"
            :lordRewardThreeBool="lordRewardThreeBool"
            :lordRewardTwo="lordRewardTwo"
            vueId="8cb12954-2"
            v-if="lordRewardBool"
        ></jiangli>
        <bang-dan
            :bangDanObj="bangDanObj"
            @__l="__l($event, { eventOpts: [['^close', [['closeBangDanClick']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['closeBangDanClick']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^close', [['closeBangDanClick']]]]"
            :lastList="lastList"
            vueId="8cb12954-3"
            v-if="bangDanBool"
        ></bang-dan>
        <wanfa
            @__l="__l($event, { eventOpts: [['^close', [['closeGameplayClick']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['closeGameplayClick']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^close', [['closeGameplayClick']]]]"
            :levelList="levelList"
            :lord="lord"
            vueId="8cb12954-4"
            v-if="gameplayBool"
        ></wanfa>
        <pay-card
            @__l="
                __l($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            @close="
                __e($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            @success="
                __e($event, {
                    eventOpts: [
                        ['^close', [['hidePayPopup']]],
                        ['^success', [['paySuccess']]]
                    ]
                })
            "
            class="data-v-16e3096c"
            :data-event-opts="[
                ['^close', [['hidePayPopup']]],
                ['^success', [['paySuccess']]]
            ]"
            :info="payInfo"
            :payTotal="payTotal"
            vueId="8cb12954-5"
            v-if="isPayPopup"
        ></pay-card>
        <uni-popup
            @__l="__l($event, { ref: 'detailPopup' })"
            class="data-v-16e3096c vue-ref"
            data-ref="detailPopup"
            style="z-index: 1000"
            type="bottom"
            vueId="8cb12954-6"
            :vueSlots="['default']"
        >
            <box-sku-popup
                @__l="__l($event, { eventOpts: [['^close', [['hideDetailImagePopup']]]] })"
                @close="__e($event, { eventOpts: [['^close', [['hideDetailImagePopup']]]] })"
                class="data-v-16e3096c"
                :data-event-opts="[['^close', [['hideDetailImagePopup']]]]"
                :detailImageList="info.detail_images"
                :skuList="info.skus"
                :vueId="'8cb12954-7' + ',' + '8cb12954-6'"
            ></box-sku-popup>
        </uni-popup>
        <open-box-popup-theme2
            @__l="__l($event, { eventOpts: [['^close', [['goBack']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['goBack']]]] })"
            :boxImg="boxImage"
            boxImgMode="square"
            class="data-v-16e3096c"
            :config="config"
            :data-event-opts="[['^close', [['goBack']]]]"
            :doubleBoxCard="is_doubleBoxCard"
            :levelskus="info.skus"
            :order="order"
            :sku_level="info.sku_level"
            :tryMode="isTryMode"
            vueId="8cb12954-8"
            v-if="isShowResultPopup"
        ></open-box-popup-theme2>
        <imagepop
            @__l="__l($event, { eventOpts: [['^close', [['isimagepopfun']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['isimagepopfun']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^close', [['isimagepopfun']]]]"
            :info="skuinfo"
            vueId="8cb12954-9"
            v-if="isimagepop"
        ></imagepop>
        <view class="not-found-c data-v-16e3096c" v-if="isNotFound">活动不见了哦~</view>
        <free-ticket-float-btn
            @__l="__l($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            @useFreeTicket="__e($event, { eventOpts: [['^useFreeTicket', [['useFreeTicket']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^useFreeTicket', [['useFreeTicket']]]]"
            nodeType="fudai"
            :uuid="uuid"
            vueId="8cb12954-10"
            v-if="info.is_invite_enabled"
        ></free-ticket-float-btn>
        <danmus @__l="__l" class="data-v-16e3096c" :list="danmuList" :setting="danmuSetting" vueId="8cb12954-11" v-if="danmuSetting.is_enabled"></danmus>
        <record-list
            @__l="__l($event, { eventOpts: [['^close', [['e1']]]] })"
            @close="__e($event, { eventOpts: [['^close', [['e1']]]] })"
            class="data-v-16e3096c"
            :data-event-opts="[['^close', [['e1']]]]"
            :info="info"
            :room="info.room"
            :skuLevel="skuLevel"
            vueId="8cb12954-12"
            v-if="isShowRankList"
        ></record-list>
    </view>
</template>

<script>
import priceDisplay from '@/components/PriceDisplay/PriceDisplay';
import uniPopup from '@/uni_modules/uni-popup/components/uni-popup/uni-popup';
import boxSkuPopup from '@/components/BoxSkuPopup/BoxSkuPopup';
import openBoxPopupTheme2 from '@/components/OpenBoxPopupTheme2/OpenBoxPopupTheme2';
import freeTicketFloatBtn from '@/components/FreeTicketFloatBtn/FreeTicketFloatBtn';
import danmus from '@/components/Danmus/Danmus';
import payCard from '@/pages/wuxianshang/components/PayCard';
import recordList from '@/pages/wuxianshang/components/RecordList';
import imagepop from '@/pages/wuxianshang/components/imagepop';
import bangDan from '@/pages/wuxianshang/components/bangDan';
import wanfa from '@/pages/wuxianshang/components/wanfa';
import jiangli from '@/pages/wuxianshang/components/jiangli';
import tabBar from '@/components/TabBar/tabBar';
(global.webpackJsonp = global.webpackJsonp || []).push([
    ['pages/wuxianshang/detail'],
    {
        '245b': function (t, n, e) {
            'use strict';

            (function (t, n) {
                var i = e('4ea4');
                e('18ba');
                i(e('66fd'));
                var o = i(e('484d'));
                t.__webpack_require_UNI_MP_PLUGIN__ = e;
                n(o.default);
            }.call(this, e('bc2e').default, e('543d').createPage));
        },
        '3f25': function (t, n, e) {
            'use strict';

            (function (t) {
                var i = e('4ea4');
                Object.defineProperty(n, '__esModule', {
                    value: true
                });
                n.default = void 0;
                var o = i(e('9523'));
                function s(t, n) {
                    var e = Object.keys(t);
                    if (Object.getOwnPropertySymbols) {
                        var i = Object.getOwnPropertySymbols(t);
                        if (n) {
                            i = i.filter(function (n) {
                                return Object.getOwnPropertyDescriptor(t, n).enumerable;
                            });
                        }
                        e.push.apply(e, i);
                    }
                    return e;
                }
                function a(t) {
                    for (var n = 1; n < arguments.length; n++) {
                        if (null != arguments[n]) {
                            var e = arguments[n];
                        } else {
                            var e = {};
                        }
                        if (n % 2) {
                            s(Object(e), true).forEach(function (n) {
                                (0, o.default)(t, n, e[n]);
                            });
                        } else {
                            Object.getOwnPropertyDescriptors
                                ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e))
                                : s(Object(e)).forEach(function (n) {
                                      Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(e, n));
                                  });
                        }
                    }
                    return t;
                }
                var r = {
                    components: {
                        PayCard: function () {
                            Promise.all([e.e('common/vendor'), e.e('pages/wuxianshang/components/PayCard')])
                                .then(
                                    function () {
                                        return resolve(e('e99a'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        },
                        RecordList: function () {
                            e.e('pages/wuxianshang/components/RecordList')
                                .then(
                                    function () {
                                        return resolve(e('568b'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        },
                        imagepop: function () {
                            e.e('pages/wuxianshang/components/imagepop')
                                .then(
                                    function () {
                                        return resolve(e('8a1d'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        },
                        bangDan: function () {
                            Promise.all([e.e('common/vendor'), e.e('pages/wuxianshang/components/bangDan')])
                                .then(
                                    function () {
                                        return resolve(e('6031'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        },
                        wanfa: function () {
                            e.e('pages/wuxianshang/components/wanfa')
                                .then(
                                    function () {
                                        return resolve(e('641d'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        },
                        jiangli: function () {
                            e.e('pages/wuxianshang/components/jiangli')
                                .then(
                                    function () {
                                        return resolve(e('cce0'));
                                    }.bind(null, e)
                                )
                                .catch(e.oe);
                        }
                    },
                    data: function () {
                        return {
                            bgImgs: [
                                'url(https://img121.7dun.com/20230207NewImg/wuxianshang/rDes.png)',
                                'url(https://img121.7dun.com/20230207NewImg/wuxianshang/srDes.png)',
                                'url(https://img121.7dun.com/20230207NewImg/wuxianshang/ssrDes.png)',
                                'url(https://img121.7dun.com/20230207NewImg/wuxianshang/urDes.png)',
                                'url()'
                            ],
                            currentswiper: 0,
                            numIndex: 1,
                            timers: null,
                            times: 0,
                            lastList: null,
                            levelList: [],
                            lordRewardThreeBool: false,
                            bangDanObj: {},
                            bangDanBool: false,
                            gameplayBool: false,
                            lordRewardBool: false,
                            lordRewardThree: {},
                            lordRewardTwo: {},
                            lordRewardOne: {},
                            lordRightObj: {},
                            lord: null,
                            lord_endtime: '',
                            uuid: '',
                            isInit: false,
                            isPayPopup: false,
                            payTotal: 1,
                            info: {
                                min_lucky_score: ''
                            },
                            order: {},
                            pageUuid: '',
                            isNotFound: false,
                            isShowResultPopup: false,
                            danmuSetting: {},
                            danmuList: [],
                            config: {},
                            detailImageList: [],
                            levelFilter: 0,
                            isTryMode: false,
                            isShowRankList: false,
                            wining_list: [],
                            isimagepop: false,
                            is_doubleBoxCard: 0,
                            skuinfo: {},
                            skusList: [],
                            skus_ultimate: {},
                            color_list: [
                                {
                                    level: 0,
                                    color: '#00aa00'
                                },
                                {
                                    level: 1,
                                    color: '#aa55ff'
                                },
                                {
                                    level: 2,
                                    color: '#ffff00'
                                },
                                {
                                    level: 3,
                                    color: '#ffff00'
                                },
                                {
                                    level: 4,
                                    color: '#ff0000'
                                }
                            ]
                        };
                    },
                    computed: a(
                        a({}, (0, e('26cb').mapGetters)(['userInfo'])),
                        {},
                        {
                            bgImage: function () {
                                return 'https://cdn2.hquesoft.com/box/fudai/detail_bg.png';
                            },
                            boxImage: function () {
                                return this.info.image_3d || 'https://cdn2.hquesoft.com/box/fudai/box.png';
                            },
                            skuLevel: function () {
                                return this.info.sku_level || [];
                            },
                            skus: function () {
                                var that = this;
                                return this.levelFilter
                                    ? this.info.skus.filter(function (n) {
                                          return n.level === that.levelFilter;
                                      })
                                    : this.info.skus || [];
                            },
                            payInfo: function () {
                                return {
                                    page_uuid: this.pageUuid,
                                    title: this.info.title,
                                    pay_total: this.payTotal,
                                    total_list: this.info.total_list,
                                    money_price: this.info.money_price,
                                    score_price: this.info.score_price
                                };
                            },
                            titleBgColor: function () {
                                return ' ';
                            },
                            titleColor: function () {
                                return '#ffffff';
                            },
                            setTitleText: function () {
                                t.setNavigationBarTitle({
                                    title: this.info.title
                                });
                            },
                            discountTips: function () {
                                for (t = this.info.total_list || [], n = t.length - 1, void 0; n >= 0; n--) {
                                    var t;
                                    var n;
                                    if (t[n].is_discount) {
                                        var e = t[n].total + '连开优惠';
                                        if (t[n].money_discount) {
                                            e += t[n].money_discount / 100 + '元';
                                        }
                                        if (t[n].score_discount) {
                                            e += t[n].score_discount + this.scoreAlias;
                                        }
                                        return e;
                                    }
                                }
                                return false;
                            },
                            width_value: function () {
                                return (this.userInfo.lucky_score / this.info.min_lucky_score) * 100 > 100
                                    ? 100
                                    : (this.userInfo.lucky_score / this.info.min_lucky_score) * 100 < 0
                                    ? 0
                                    : Math.trunc((this.userInfo.lucky_score / this.info.min_lucky_score) * 100);
                            }
                        }
                    ),
                    watch: {},
                    filters: {},
                    onLoad: function (n) {
                        this.uuid = n.uuid;
                        t.loadFontFace({
                            family: 'BigjianNew',
                            source: 'url("'.concat('https://img121.7dun.com/member_grade/BigjianNew.TTF', '")'),
                            success: function () {},
                            fail: function (t) {}
                        });
                    },
                    onUnload: function () {},
                    created: function () {},
                    onPullDownRefresh: function () {
                        this.$showPullRefresh();
                        this.initData();
                        this.setTitleText();
                    },
                    onShow: function () {
                        var that = this;
                        t.showLoading({
                            title: '加载中'
                        });
                        this.newHttp();
                        this.initData()
                            .then(function (e) {
                                that.isInit = true;
                                t.hideLoading();
                                that.$http('/fudai/change', 'POST', {
                                    fudai_id: that.info.id
                                }).then(function (t) {
                                    that.pageUuid = t.data.page_uuid;
                                    that.fetchList();
                                });
                            })
                            .catch(function (t) {
                                that.isNotFound = true;
                            });
                    },
                    onReachBottom: function () {},
                    methods: {
                        handleBackClick: function () {
                            t.switchTab({
                                url: '/pages/index/index'
                            });
                        },
                        openBangDanClick: function () {
                            var that = this;
                            this.$http('/fudais/'.concat(this.uuid, '/lord-rank'), 'GET', {
                                page: 1,
                                per_page: 10
                            }).then(function (n) {
                                n.data.last_list.forEach(function (n) {
                                    if (1 == n.ranking) {
                                        that.lastList = n;
                                    }
                                });
                                that.bangDanBool = true;
                                that.bangDanObj = n.data;
                            });
                        },
                        closeBangDanClick: function () {
                            this.bangDanBool = false;
                        },
                        openGameplayClick: function () {
                            this.gameplayBool = true;
                        },
                        closeGameplayClick: function () {
                            this.gameplayBool = false;
                        },
                        openJiangLiClick: function () {
                            this.lordRewardBool = true;
                        },
                        closeJiangLiClick: function () {
                            this.lordRewardBool = false;
                        },
                        handleTry: function () {
                            t.showLoading({
                                title: '刷新中...'
                            });
                            this.initData().then(function (n) {
                                t.hideLoading();
                                t.showToast({
                                    title: '刷新完成~',
                                    icon: 'none'
                                });
                            });
                        },
                        fetchList: function () {
                            var that = this;
                            return (
                                !this.isLoading &&
                                ((this.isLoading = true),
                                this.$http('/fudais/'.concat(this.info.uuid, '/records'), 'GET', {
                                    page: 1,
                                    per_page: 100
                                })
                                    .then(function (n) {
                                        that.isInit = true;
                                        for (var e = 0; e < n.data.list.length; e++) {
                                            if (that.wining_list.length < 12 && 5 == n.data.list[e].level) {
                                                that.wining_list.push(n.data.list[e]);
                                            }
                                        }
                                    })
                                    .catch(function (n) {
                                        that.isInit = false;
                                    }))
                            );
                        },
                        setLevelFilter: function (t) {
                            this.levelFilter === t ? (this.levelFilter = 0) : (this.levelFilter = t);
                        },
                        addClick: function () {
                            t.vibrateShort({});
                            1 === this.payTotal
                                ? (this.payTotal = this.payTotal + 2)
                                : 3 === this.payTotal
                                ? (this.payTotal = this.payTotal + 7)
                                : t.showToast({
                                      title: '最多十抽哦~',
                                      icon: 'none'
                                  });
                        },
                        minusClick: function () {
                            t.vibrateShort({});
                            3 === this.payTotal
                                ? (this.payTotal = this.payTotal - 2)
                                : 10 === this.payTotal
                                ? (this.payTotal = this.payTotal - 7)
                                : 20 === this.payTotal
                                ? (this.payTotal = this.payTotal - 10)
                                : t.showToast({
                                      title: '最少一抽哦~',
                                      icon: 'none'
                                  });
                        },
                        gomybox: function () {
                            t.reLaunch({
                                url: '/pages/myBox/index'
                            });
                        },
                        useFreeTicket: function () {
                            var that = this;
                            t.showLoading({
                                title: '提交中',
                                icon: 'none'
                            });
                            this.$http('/fudai/order/confirm', 'POST', {
                                page_uuid: this.pageUuid,
                                total: 1,
                                is_use_free_ticket: 1
                            }).then(function (e) {
                                t.hideLoading();
                                var i = e.data;
                                i.is_need_pay
                                    ? t.showToast({
                                          title: '兑换出错~',
                                          icon: 'none'
                                      })
                                    : that.paySuccess(i.order);
                            });
                        },
                        getDanmu: function () {
                            var that = this;
                            this.$http('/danmus/fudai_detail?node_id='.concat(this.info.id)).then(function (n) {
                                that.danmuSetting = n.data.setting;
                                that.danmuList = n.data.list;
                            });
                        },
                        showDetailImagePopup: function (t, n) {
                            t.odds = n;
                            this.skuinfo = t;
                            this.isimagepop = true;
                        },
                        hideDetailImagePopup: function () {
                            this.$refs.detailPopup.close();
                        },
                        isimagepopfun: function () {
                            this.isimagepop = false;
                        },
                        refresh: function () {
                            this.$store.dispatch('getUserInfo');
                        },
                        newHttp: function () {
                            var that = this;
                            return this.$http('/fudais/'.concat(this.uuid), 'GET', {}).then(function (n) {
                                that.levelList = n.data.info.sku_level.filter(function (t, n, e) {
                                    return (
                                        e.findIndex(function (n) {
                                            return n.level === t.level;
                                        }) === n
                                    );
                                });
                                var e = 1;
                                if (n.data && '[]' != JSON.stringify(n.data.lord_info)) {
                                    that.lord = n.data.lord_info;
                                    if (n.data.lord_info && n.data.lord_info.lord_skus[0]) {
                                        that.lordRightObj = that.lord && that.lord.lord_skus[0];
                                    }
                                    if (that.lord && that.lord.lord_skus[0]) {
                                        that.lord.lord_skus.forEach(function (n) {
                                            if (1 == n.ranking) {
                                                that.lordRewardOne = n;
                                            }
                                            if (2 == n.ranking) {
                                                that.lordRewardTwo = n;
                                                that.lordRewardThreeBool = false;
                                            }
                                            if (3 == n.ranking) {
                                                that.lordRewardThreeBool = true;
                                                that.lordRewardThree = n;
                                            }
                                        });
                                    }
                                    setInterval(function () {
                                        that.lordRightObj = that.lord.lord_skus[e];
                                        if (++e >= that.lord.lord_skus.length) {
                                            e = 0;
                                        }
                                    }, 3000);
                                    var i = new Date(n.data.lord_info.end_at.replace(/-/g, '/')).getTime();
                                    that.lord_endtime = (function (t) {
                                        var n = new Date().getTime();
                                        var e = new Date(n);
                                        var i = new Date(t);
                                        var o = (e.getFullYear(), e.getMonth(), e.getDate());
                                        var s = (e.getHours(), e.getMinutes(), e.getSeconds(), i.getFullYear(), i.getMonth(), i.getDate());
                                        var a = i.getHours();
                                        var r = i.getMinutes();
                                        i.getSeconds();
                                        if (r < 10) {
                                            r = '0' + r;
                                        }
                                        if (a < 10) {
                                            a = '0' + a;
                                        }
                                        return s - o >= 0 && s - o < 1 ? '今日 ' + a + ':' + r : s - o >= 1 && s - o < 2 ? '明日 ' + a + ':' + r : s + '日 ' + a + ':' + r;
                                    })(i);
                                }
                            });
                        },
                        newHttp60: function () {
                            var that = this;
                            this.times < 60 ||
                                this.$http('/fudais/'.concat(this.uuid), 'GET', {}).then(function (n) {
                                    var e = 1;
                                    if (n.data && '[]' != JSON.stringify(n.data.lord_info)) {
                                        clearTimeout(that.timers);
                                        that.times = 0;
                                        that.lord = n.data.lord_info;
                                        if (n.data.lord_info && n.data.lord_info.lord_skus[0]) {
                                            that.lordRightObj = that.lord && that.lord.lord_skus[0];
                                        }
                                        if (that.lord && that.lord.lord_skus[0]) {
                                            that.lord.lord_skus.forEach(function (n) {
                                                if (1 == n.ranking) {
                                                    that.lordRewardOne = n;
                                                }
                                                if (2 == n.ranking) {
                                                    that.lordRewardTwo = n;
                                                    that.lordRewardThreeBool = false;
                                                }
                                                if (3 == n.ranking) {
                                                    that.lordRewardThreeBool = true;
                                                    that.lordRewardThree = n;
                                                }
                                            });
                                        }
                                        setInterval(function () {
                                            that.lordRightObj = that.lord.lord_skus[e];
                                            if (++e >= that.lord.lord_skus.length) {
                                                e = 0;
                                            }
                                        }, 3000);
                                        var i = new Date(n.data.lord_info.end_at.replace(/-/g, '/')).getTime();
                                        that.lord_endtime = (function (t) {
                                            var n = new Date().getTime();
                                            var e = new Date(n);
                                            var i = new Date(t);
                                            var o = (e.getFullYear(), e.getMonth(), e.getDate());
                                            var s = (e.getHours(), e.getMinutes(), e.getSeconds(), i.getFullYear(), i.getMonth(), i.getDate());
                                            var a = i.getHours();
                                            var r = i.getMinutes();
                                            i.getSeconds();
                                            if (r < 10) {
                                                r = '0' + r;
                                            }
                                            if (a < 10) {
                                                a = '0' + a;
                                            }
                                            return s - o >= 0 && s - o < 1 ? '今日 ' + a + ':' + r : s - o >= 1 && s - o < 2 ? '明日 ' + a + ':' + r : s + '日 ' + a + ':' + r;
                                        })(i);
                                        console.log('最终时间', that.lord_endtime);
                                    }
                                });
                        },
                        initData: function () {
                            var that = this;
                            return this.$http('/fudais/'.concat(this.uuid), 'GET', {}).then(function (e) {
                                t.hideLoading();
                                that.info = e.data.info;
                                that.config = e.data.config;
                                that.info.sku_level = that.info.sku_level.sort().reverse();
                                that.skusList = e.data.info.skus.filter(function (t) {
                                    return 5 === t.level;
                                });
                                var i = 1;
                                that.numIndex = 1;
                                that.skus_ultimate = that.skusList[0];
                                setInterval(function () {
                                    that.skus_ultimate = that.skusList[i];
                                    that.numIndex++;
                                    if (++i >= that.skusList.length) {
                                        i = 0;
                                    }
                                    if (that.numIndex == that.skusList.length) {
                                        that.numIndex = that.skusList.length;
                                    }
                                    if (that.numIndex > that.skusList.length) {
                                        that.numIndex = 1;
                                    }
                                }, 3000);
                                that.getDanmu();
                                t.setNavigationBarTitle({
                                    title: that.info.title
                                });
                            });
                        },
                        changeswiper: function (t) {
                            this.currentswiper = t.detail.current;
                        },
                        handleLeftClick: function () {
                            this.currentswiper = this.currentswiper - 1;
                            if (this.currentswiper <= -1) {
                                this.currentswiper = this.skusList.length - 1;
                            }
                        },
                        handleRightClick: function () {
                            this.currentswiper = this.currentswiper + 1;
                            if (this.currentswiper >= this.skusList.length) {
                                this.currentswiper = 0;
                            }
                        },
                        paySuccess: function (t) {
                            var that = this;
                            var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1];
                            if (arguments.length > 2) {
                                var i = arguments[2];
                            } else {
                                var i = void 0;
                            }
                            this.isTryMode = e;
                            this.order = t;
                            this.is_doubleBoxCard = i;
                            this.isPayPopup = false;
                            this.isShowResultPopup = true;
                            this.refresh();
                            this.newHttp60();
                            this.timers = setInterval(function () {
                                that.times++;
                            }, 1000);
                        },
                        goBack: function () {
                            this.isShowResultPopup = false;
                        },
                        hidePayPopup: function () {
                            this.newHttp();
                            this.isPayPopup = false;
                        },
                        pay: function (t) {
                            this.payTotal = t;
                            this.isPayPopup = true;
                        },
                        getLevelIcon: function (t) {
                            return this.skuLevel.find(function (n) {
                                return n.level === t;
                            }).icon;
                        },
                        getLevelTitle: function (t) {
                            return this.skuLevel.find(function (n) {
                                return n.level === t;
                            }).title;
                        }
                    },
                    onPageScroll: function (t) {}
                };
                n.default = r;
            }.call(this, e('543d').default));
        },
        '484d': function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('801e');
            var o = e('ec58');
            for (var s in o) {
                if (['default'].indexOf(s) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return o[t];
                        });
                    })(s);
                }
            }
            e('ca3b');
            var a = e('f0c5');
            var r = Object(a.a)(o.default, i.b, i.c, false, null, '16e3096c', null, false, i.a, void 0);
            n.default = r.exports;
        },
        '801e': function (t, n, e) {
            'use strict';

            e.d(n, 'b', function () {
                return o;
            });
            e.d(n, 'c', function () {
                return s;
            });
            e.d(n, 'a', function () {
                return i;
            });
            var i = {
                PriceDisplay: function () {
                    return e.e('components/PriceDisplay/PriceDisplay').then(e.bind(null, '6b05'));
                },
                uniPopup: function () {
                    return e.e('uni_modules/uni-popup/components/uni-popup/uni-popup').then(e.bind(null, '0fa2'));
                },
                BoxSkuPopup: function () {
                    return e.e('components/BoxSkuPopup/BoxSkuPopup').then(e.bind(null, 'f1cb'));
                },
                OpenBoxPopupTheme2: function () {
                    return e.e('components/OpenBoxPopupTheme2/OpenBoxPopupTheme2').then(e.bind(null, 'e39b'));
                },
                FreeTicketFloatBtn: function () {
                    return e.e('components/FreeTicketFloatBtn/FreeTicketFloatBtn').then(e.bind(null, 'ef0dd'));
                },
                Danmus: function () {
                    return e.e('components/Danmus/Danmus').then(e.bind(null, '4bc1'));
                }
            };
            var o = function () {
                var that = this;
                var n = (that.$createElement, that._self._c, that.skusList.length);
                var e = that.__map(that.info.sku_level, function (n, e) {
                    return {
                        $orig: that.__get_orig(n),
                        g1: n.odds.toFixed(2)
                    };
                });
                that._isMounted ||
                    ((that.e0 = function (n) {
                        that.isShowRankList = true;
                    }),
                    (that.e1 = function (n) {
                        that.isShowRankList = false;
                    }));
                that.$mp.data = Object.assign(
                    {},
                    {
                        $root: {
                            g0: n,
                            l0: e
                        }
                    }
                );
            };
            var s = [];
        },
        ca3b: function (t, n, e) {
            'use strict';

            var i = e('e540');
            e.n(i).a;
        },
        e540: function (t, n, e) {},
        ec58: function (t, n, e) {
            'use strict';

            e.r(n);
            var i = e('3f25');
            var o = e.n(i);
            for (var s in i) {
                if (['default'].indexOf(s) < 0) {
                    (function (t) {
                        e.d(n, t, function () {
                            return i[t];
                        });
                    })(s);
                }
            }
            n.default = o.a;
        }
    },
    [['245b', 'common/runtime', 'common/vendor']]
]);
</script>
<style>
@import './detail.css';
</style>
